<?php

namespace Biz\model\brandRights;

use Biz\pockets\modelTrait\BizModelTrait;
use Doraemon\pockets\datebase\BaseDbModel;

class BrandLevelRightsSource extends BaseDbModel
{
    const _CONFIG_FILE_ = 'db_store';

    const _CONFIG_SELECT_ = 'db_store';

    const _DATABASE_ = 'store';

    const _TABLE_NAME = 'brand_level_rights_source';

    const STATUS_ON = BaseDbModel::STATUS_NORMAL;
    const STATUS_DELETE = BaseDbModel::STATUS_DELETE;

    use BizModelTrait;


    /**
     * 获取品牌等级源权益
     * @param int $rights_status
     * @param array $where
     * @return array|bool
     */
    public static function getBrandLevelSourceRights($rights_status = null, $where = [])
    {
        if (isset($rights_status)) {
            $where['data_status'] = $rights_status;
        }
        $list = [];
        $levelSourceRights = self::dataSelect($where);
        if ($levelSourceRights && is_array($levelSourceRights)) {
            $list = $levelSourceRights;
        }
        return $list;
    }


}